{{- $key := .Get 0 | relURL  -}}
{{- $key := replace $key "(" "" -}}
{{- $key := replace $key ")" "" -}}

{{- $prefix := "" -}}
{{- if not (hasPrefix $key "http") -}}
  {{- $prefix = "/" -}}
{{- end -}}

{{- if not (or (hasSuffix $key ".png") (hasSuffix $key ".jpg") (hasSuffix $key ".jpeg")) -}}
  {{- $key = lower $key -}}
{{- end -}}

{{- $result := printf "%s%s" $prefix $key -}}

{{- if ( hasPrefix $key "/kkbt" ) -}}
  {{- if or (hasSuffix $key ".png") (hasSuffix $key ".jpg") (hasSuffix $key ".jpeg") -}}
  {{- $key := replace $key " " "%20" -}}
  https://note.ftls.xyz{{-  $key  -}}
  {{- else -}}
  {{- $key := replace $key " " "-" -}}
  {{-  $key  -}}
  {{- end -}}
{{- else -}}
{{- $key -}}
{{- end -}}